package com.suse.warmstill.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.suse.warmstill.entity.TbArticleBody;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 黄靖
 * @author 2022-11-04 17:02
 * description:
 **/
@Data
@ApiModel("文章新增内容")
@Validated
public class ArticlePostVo extends BaseVo {

    @NotNull(message = "文章标题不能为空")
    @ApiModelProperty("文章标题")
    private String title;
    @NotNull(message = "小总结不能为空")
    @ApiModelProperty("小总结")
    private String summary;
    @NotNull(message = "文章作者不能为空")
    @ApiModelProperty("文章作者")
    private String authorName;

    @ApiModelProperty("文章内容 对象")
    private TbArticleBody articleBody;
    @NotNull(message = "文章封面地址不能为空")
    @ApiModelProperty("文章封面地址")
    private String backgrundAdress;


    @ApiModelProperty("文章附图地址")
    private String imgFileAdress;


    @ApiModelProperty("分类")
    private Long littleCategoryId;


}
